package com.yanqu.road.entity.activity.newyearbag;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_c_new_year_bag_device")
public class NewYearBagDevice extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "设备ID", update = true)
    private String deviceId;
    @FieldTypeAnnotation(desc = "现金次数")
    private int xianJinTimes;
    @FieldTypeAnnotation(desc = "实物次数")
    private int shiWuTimes;


    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        if (deviceId == null) {
            return;
        }
        if (this.deviceId == null || !this.deviceId.equals(deviceId)) {
            this.deviceId = deviceId;
            setOp(DataStatus.Update);
        }
    }

    public int getXianJinTimes() {
        return xianJinTimes;
    }

    public void setXianJinTimes(int xianJinTimes) {
        if (this.xianJinTimes != xianJinTimes) {
            this.xianJinTimes = xianJinTimes;
            setOp(DataStatus.Update);
        }
    }

    public int getShiWuTimes() {
        return shiWuTimes;
    }

    public void setShiWuTimes(int shiWuTimes) {
        if(this.shiWuTimes != shiWuTimes) {
            this.shiWuTimes = shiWuTimes;
            setUpdateOption();
        }
    }
}
